package org.zhuyx.ch01.shizhan.entity;

import java.io.Serializable;

/**
 * @author 茜茜
 * @date 2024-12-05 14:18
 */
public class Employee implements Serializable {
    private String name;
    private String work;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public void introduce(){
        System.out.println("我是"+work+"岗位的"+name+"我今年"+age+"岁");
    }
}
